<?php

class JS_IfNode extends JS_Node {
	
	public function __construct() {
		parent::__construct();
	}
	
	public function &getCondition() {
		return $this->children[0];
	}
	
	public function &getBody() {
		return $this->children[1];
	}
	
	public function interpret() {}
	
	public function __toString() {
		return 'if (' . $this->children[0] . ") {\n" . $this->children[1] . "\n}";
	}
}

?>